/**
 * 路由菜单(需登录)-为页面的侧边栏的菜单使用
 */
export const RoutesMenu = [
  {
    path: "/home",
    name: "home",
    component: () => import('../views/home.vue'),
    meta: {title: "首页", showTitle: false, icon: 'el-icon-s-home'}
  },
  {
    path: "/device",
    name: "device",
    meta: {title: "设备", showTitle: false, icon: 'el-icon-mobile'},
    children: [
      {
        path: "/device/deviceList",
        name: "deviceList",
        component: () => import('../views/device/list.vue'),
        meta: {title: "设备列表", showTitle: false},
      },
      {
        path: "/device/deviceInfo",
        name: "deviceInfo",
        meta: {title: "设备信息", showTitle: false},
        children: [
          {
            path: "/device/deviceInfo/deviceDetail",
            name: "deviceDetail",
            component: () => import('../views/device/detail.vue'),
            meta: {title: "设备详情", showTitle: false, disabled: true}
          }
        ]
      }
    ]
  },
  {
    path: "/openai",
    name: "openai",
    meta: {title: "openai", showTitle: false, icon: 'el-icon-chat-line-round'},
    children: [
      {
        path: "/openai/messageList",
        name: "messageList",
        component: () => import('../views/openai/history.vue'),
        meta: {title: "聊天记录", showTitle: false},
      },
    ]
  },
]
